<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page contentType="text/html; charset=UTF-8" %>
<%@ taglib uri="/struts-tags" prefix="s" %>
<%@ include file="/common/common.jsp"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/cases/execute/";  //应用的地址名
String listActionName = basePath+"caseSourceExecute2.action?op=searchjs";
String lookFrameActionName = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/cases/source/CaseSourceReceive_lookItemFrame.action?";
String exeRegPageActionName = basePath+"caseSourceExecute_exeRegPage.action";
String inRegPageActionName = basePath+"caseSourceExecute_inRegPage.action";
String checkNoticePageActionName = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/cases/source/CaseSourceReceive_checkNoticePage.action";
String excelActionName=basePath+"caseSourceExecute2_saExcel.action";
%>
<script language="javascript" src="<%=path %>/js/My97/WdatePicker.js"></script>
<script type="text/javascript" src="<%=path %>/js/fileupload.js"></script>
<script language="javascript" src="<%=path %>/jslib/orgSelect.js"></script>
<script type="text/javascript">
    		$(function(){
    			$('#inspectDept').orgSelect({
    				inspectDeptId:'inspectDept',
    		        collectDeptId:'collectDept'
    			});	
			//表格初始化
			$('#searchTable').grid({
				title:[<ce:menu/>],
				url:'<%=listActionName%>',
				singleSelect:true,
	            queryParams : {
					"search.taxpayerNum" : "",
					"search.involvedEnt" : "",
					"search.caseNum" : "",
					"search.recBeginDate" : "",
					"search.recEndDate" : "",
					"search.caseFrom" : "",
					"search.illegalType" : "",
					"search.inspectDept" : "",
					"search.collectDept" : ""
			    }, //用于查询的参数以及初始值
			//表头列，不建议改动
			frozenColumns : [ [ {
				field : 'ck',
				checkbox : true
			} ] ],
			//数据列，根据显示的内容进行修改
			columns : [ [

			{
				field : 'caseNumber',
				title : '案源编号',
				width : 120,
				sortable : true
			}, {
				field : 'enterprice',
				title : '涉案企业（个人）名称',
				width : 200,
				sortable : true
			}, {
				field : 'execPerson',
				title : '执行人员',
				width : 120,
				sortable : true
			}, {
				field : 'execStepsName',
				title : '执行措施',
				width : 120
			}, {
				field : 'policeHelp',
				title : '是否公安配合检查追缴入库数',
				width : 170,
				sortable : true,
				formatter : function(value) {
					if (value == '0') {
						return "否";
					} else if (value == '1') {
						return "是";
					}
				}
			}, {
				field : 'amountTax',
				title : '入库税款合计',
				width : 100,
				sortable : true
			}, {
				field : 'amountFine',
				title : '入库罚款合计',
				width : 100,
				sortable : true
			}

			] ],
			//功能按钮组
			toolbar : [ <ce:jsonBtn/> ]
		});
		//查询操作
		$('#search').click(function() {
			defaultSearchAction();
		});
		$('#resetSearch').click(function(){
			
		});
	});

   		function openExeReg() {
   			defaultOpenDealPageHavebtn('<%=exeRegPageActionName%>',550,350,null,'执行情况登记');
   			}
       function openInReg(){
    	   defaultOpenDealPageHavebtn('<%=inRegPageActionName%>',650,550,null,'入库情况登记');
       }
       function addJczxbg(){
    	   defaultOpenDealPageHavebtn('<%=checkNoticePageActionName%>?fileType=稽查报告',550,350,null,'稽查报告');
       }
       
       function viewItem(id){
			var rows = $('#searchTable').datagrid('getSelections');	
			var num=rows[0].caseNumber;
			parent.addTabs_(num+'案源查看','<%=lookFrameActionName%>&chkSelf='+id);
		}
       function passItems(){
    	   
       }
       
   	function saveAsExcel(){
   	   if($('#saveExcelFrm').length==0){
   			$('<iframe id="saveExcelFrm" name="saveExcelFrm" width=0 height=0></iframe>').appendTo(document.body);
   		}
   		var f = $('form:first');
   		var fa = f.attr('action');
   		f.attr('target','saveExcelFrm');
   		f.attr('action','<%=excelActionName%>');
   		f[0].submit();
   		f.attr('target','');
   		f.attr('action',fa);
  } 
    </script>
<html>
  <head>
    <title>执行案源台账</title>
  </head> 
<body class="easyui-layout">
<form id="excelSearch">
<div class="div_height_auto" data-options="region:'north',border:false" style="overflow: hidden;" align="left">
       <table>
<tr>
	<td align="right">纳税人识别号：</td><td><input type="text" name="search.taxpayerNum" id="taxpayerNum" style="width:100px;"/></td>
	<td align="right">涉案企业名称：</td><td><input type="text" name="search.involvedEnt" id="involvedEnt"  style="width:100px;"/></td>
	<td align="right">案源编号：</td><td><input type="text" name="search.caseNum" id="caseNum"  style="width:100px;"/></td>
	<td align="right">接收日期：</td>
	<td><input type="text" name="search.recBeginDate" id="recBeginDate" style="width:100px;" class="Wdate" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})" readonly="true"/>&nbsp;至&nbsp;
	    <input type="text" name="search.recEndDate" id="recEndDate"  style="width:100px;"  class="Wdate" onclick="WdatePicker({skin:'whyGreen',dateFmt:'yyyy-MM-dd'})" readonly="true"/>
	</td>
</tr>
<tr>
	<td align="right">案件来源：</td><td><ce:dictSelect name="search.caseFrom" id="caseFrom"  dictName="备选案源台账-案件来源" allOption="true" style="width:100px;"/></td>
	<td align="right">涉嫌违法类型：</td><td><ce:dictSelect name="search.illegalType" id="illegalType"    dictName="备选案源台账-涉嫌违法类型" allOption="true" style="width:100px;"/></td>
	<td align="right">所属稽查局：</td><td><select name="search.inspectDept" id="inspectDept"  style="width:100px;"></select></td>
	<td align="right">所属征管局：</td>
	<td colspan="2">
	<select id="collectDept"  style="width:100px;"></select>
	</td>
	<td rowspan="2">
	   <a id="search" href="javascript:void(0)"  class="easyui-linkbutton" iconCls="icon-search">查询</a>
	   <a id="resetSearch" href="javascript:void(0)"  class="easyui-linkbutton" iconCls="icon-redo">重置</a>
	</td>
</tr>
</table>
</div>
	<div data-options="region:'center',border:false" style="overflow: hidden;">
		<table id="searchTable"></table>
	</div>
</form>
</body>
</html>
   
   

